s = str(input("запрос "))
a = s
for i in s:
    for i in "qwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNM!№;%:?*_+@#$^&-=`~?,. ":
        s = s.replace(i,'')
for i in range (len(s)):
    s = s.replace(" ",'')
    s = s.replace("()",'')
    s = s.replace("{}",'')
    s = s.replace("[]",'')
    s = s.replace("<>",'')
if len(s) == 0:
    print ("True", a)
else:
    print("False", s)
    